export default [
  {
    path: '/',
    redirect: "/userInfo"
  },
  {
    path: '/userInfo',
    name: 'userInfo',
    icon: 'PieChartOutlined',
    routes: [
      {
        path: '/userInfo',
        component: './UserInfo',
      },
      {
        component: './404',
      },
    ]
  },
  {
    path: '/user',
    name: 'user',
    icon: 'UserOutlined',
    routes: [
      {
        path: '/user',
        component: './User',
      },
      {
        component: './404',
      },
    ]
  }, {
    path: '/music',
    name: 'music',
    icon: 'CustomerService',

    routes: [
      {
        path: '/music/list',
        name: 'musicList',
        component: './Music/index'
      },
      {
        path: '/music/singer',
        name: 'singer',
        component: './Music/singer'
      },
      {
        path: '/music/lyricAuthor',
        name: 'lyricAuthor',
        component: './Music/lyricAuthor'
      },
      {
        path: '/music/melodyAuthor',
        name: 'melodyAuthor',
        component: './Music/melodyAuthor'
      },
      {
        path: '/music/musicAlbum',
        name: 'musicAlbum',
        component: './Music/musicAlbum'
      },
      {
        path: '/music/musicLyric',
        name: 'musicLyric',
        component: './Music/musicLyric'
      },
      {
        path: '/music/classify',
        name: 'classify',
        routes: [
          {
            path: '/music/classify',
            component: './classifyTag',
          },
          {
            component: './404',
          },
        ]
      },
      {
        path: '/music/songlist',
        name: 'songlist',
        routes: [
          {
            path: '/music/songlist',
            component: './SongList',
          },
          {
            component: './404',
          },
        ]
      },
      {
        component: './404',
      },
    ]
  },
  {
    path: '/carousel',
    name: 'carousel',
    icon: 'UserOutlined',
    routes: [
      {
        path: '/carousel',
        component: './Carousel',
      },
      {
        component: './404',
      },
    ]
  },
  // {
  //   path: '/test',
  //   name: 'test',
  //   icon: 'UserOutlined',
  //   routes: [
  //     {
  //       path: '/test',
  //       component: './Tests',
  //     },
  //     {
  //       component: './404',
  //     },
  //   ]
  // },
  {
    path: '/login',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/login',
        component: './Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    component: './404',
  },
];
